<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>时间，日期转换</title>
    <script src="dateformat.js"></script>
    <script>
        //alert(DateFormat.format(new Date() , 'yyyyMMdd'));
        //alert(DateFormat.getDateStart(new Date()) , 'yyyyMMdd');
        //alert(DateFormat.getDateEndStr(new Date(), 'yyyy/MM/dd'));
        //alert(DateFormat.getWeek(new Date(),DateFormat.WEEKTYPE.US_DAYNAME));
        //console.log(DateFormat.addDay(new Date(), '3'));
        //console.log(DateFormat.format(new Date()));
        //console.log(DateFormat.formatToDate('2017/04/14 14:31:07'));
        //console.log(DateFormat.isValidDate('2017-04-14 14:31:07'));
        //console.log(DateFormat.format(new Date()));

        //console.log(DateFormat.addDayStr('2017-04-18 12:12:12' , 3));
    </script>
</head>
<body>

</body>
</html>